
using System;

namespace InfoTech.LanTranh.MucVu.Bussiness
{
    public partial class LINHMUC
    {
        public string GetFullName()
        {
            return string.Format("{0} {1} {2}", TENTHANH, HOVATENDEM, TEN);
        }

        public string GetBirthDay()
        {
            string day = "", month = "", year = "";
            if (NGAYSINH.HasValue)
                day = NGAYSINH.Value.ToString("00") + "/";
            if (THANGSINH.HasValue)
                month = THANGSINH.Value.ToString("00") + "/";
            if (NAMSINH.HasValue)
                year = NAMSINH.Value.ToString("0000");
            return string.Format("{0}{1}{2}", day, month, year);
        }

    }
}
